package cn.com.jtang.wedding.service.impl;

import java.util.List;
import java.util.Map;

import cn.com.jtang.wedding.dao.ChargeDao;
import cn.com.jtang.wedding.model.Charge;
import cn.com.jtang.wedding.service.ChargeManager;

public class ChargeManagerImpl implements ChargeManager {
	
	private ChargeDao chargeDao;

	public ChargeDao getChargeDao() {
		return chargeDao;
	}

	public void setChargeDao(ChargeDao chargeDao) {
		this.chargeDao = chargeDao;
	}
	public String insert(Charge charge){
		return chargeDao.insert(charge);
	}
	
	public Charge queryById(Long id){
		return chargeDao.queryById(id);
	}
	
	public int updateById(Long id, Charge charge){
		return chargeDao.updateById(id, charge);
	}
	
	public int deleteById(Long id){
		return chargeDao.deleteById(id);
	}
	
	public List queryAll(Map<String, Object> map, int start,int end, String... orderByStr){
		return chargeDao.queryAll(map, start, end, orderByStr);
	}

	public int getCount(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return chargeDao.getCount(map);
	}
}
